//
//  MapDepotTableViewCell.m
//  PerfectWorld
//
//  Created by dllo on 16/8/31.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "MapDepotTableViewCell.h"
#import "StrategyList.h"
#import "MapUser.h"
#import "UIImageView+WebCache.h"
@implementation MapDepotTableViewCell

- (void)setStrategyList:(StrategyList *)strategyList {
    _strategyList = strategyList;
    _labelTitle.text = strategyList.title;
    _labelDown.text = strategyList.categoryName;
    NSNumber *num = strategyList.likeCount;
    NSString *str = [num description];
    _leftLabel.text = str;
    NSNumber *num1 = strategyList.commentCount;
    NSString *str2 = [num1 description];
    _rightLabel.text = str2;
    NSNumber *num3 = @(_strategyList.covorPhotoId);
    NSString *str3 = [num3 description];
    if (str3.length >= 2) {
       NSString *str4 = [str3 substringToIndex:3];
        [_RightImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://image.gooju.cn/images/%@/9/%@_0_9-.jpg",str4, str3]] placeholderImage:nil];
    }
}


- (void)awakeFromNib {
    [super awakeFromNib];
    [self layoutIfNeeded];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
